package com.ims.core.doc.service.impl;

import java.util.List;
import com.ims.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ims.core.doc.mapper.TInAccountingQueryInvoiceMapper;
import com.ims.core.doc.domain.TInAccountingQueryInvoice;
import com.ims.core.doc.service.ITInAccountingQueryInvoiceService;

/**
 * 增值税发票报账单查询Service业务层处理
 *
 * @author IMS
 * @date 2024-12-03
 */
@Service
public class TInAccountingQueryInvoiceServiceImpl implements ITInAccountingQueryInvoiceService
{
    @Autowired
    private TInAccountingQueryInvoiceMapper tInAccountingQueryInvoiceMapper;

    /**
     * 查询增值税发票报账单查询
     *
     * @param id 增值税发票报账单查询主键
     * @return 增值税发票报账单查询
     */
    @Override
    public TInAccountingQueryInvoice selectTInAccountingQueryInvoiceById(Long id)
    {
        return tInAccountingQueryInvoiceMapper.selectTInAccountingQueryInvoiceById(id);
    }

    /**
     * 查询增值税发票报账单查询列表
     *
     * @param tInAccountingQueryInvoice 增值税发票报账单查询
     * @return 增值税发票报账单查询
     */
    @Override
    public List<TInAccountingQueryInvoice> selectTInAccountingQueryInvoiceList(TInAccountingQueryInvoice tInAccountingQueryInvoice)
    {
        return tInAccountingQueryInvoiceMapper.selectTInAccountingQueryInvoiceList(tInAccountingQueryInvoice);
    }

    /**
     * 新增增值税发票报账单查询
     *
     * @param tInAccountingQueryInvoice 增值税发票报账单查询
     * @return 结果
     */
    @Override
    public int insertTInAccountingQueryInvoice(TInAccountingQueryInvoice tInAccountingQueryInvoice)
    {
        tInAccountingQueryInvoice.setCreateTime(DateUtils.getNowDate());
        return tInAccountingQueryInvoiceMapper.insertTInAccountingQueryInvoice(tInAccountingQueryInvoice);
    }

    /**
     * 修改增值税发票报账单查询
     *
     * @param tInAccountingQueryInvoice 增值税发票报账单查询
     * @return 结果
     */
    @Override
    public int updateTInAccountingQueryInvoice(TInAccountingQueryInvoice tInAccountingQueryInvoice)
    {
        tInAccountingQueryInvoice.setUpdateTime(DateUtils.getNowDate());
        return tInAccountingQueryInvoiceMapper.updateTInAccountingQueryInvoice(tInAccountingQueryInvoice);
    }

    /**
     * 批量删除增值税发票报账单查询
     *
     * @param ids 需要删除的增值税发票报账单查询主键
     * @return 结果
     */
    @Override
    public int deleteTInAccountingQueryInvoiceByIds(Long[] ids)
    {
        return tInAccountingQueryInvoiceMapper.deleteTInAccountingQueryInvoiceByIds(ids);
    }

    /**
     * 删除增值税发票报账单查询信息
     *
     * @param id 增值税发票报账单查询主键
     * @return 结果
     */
    @Override
    public int deleteTInAccountingQueryInvoiceById(Long id)
    {
        return tInAccountingQueryInvoiceMapper.deleteTInAccountingQueryInvoiceById(id);
    }
}
